

package cn.itsource.zuul1020.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.HashSet;
import java.util.Set;

/**
 * @Class_Name: SecurityConfigProperties
 * @author: maizi
 * @Description:资源服务器配置类
 * @Date: 14:03 2020-08-31
 */
@Configuration
@ConfigurationProperties(prefix = "security")
@Data
public class SecurityConfigProperties {
    /**排他Url,不需要登录即可访问的资源*/
    private Set<String> excludeUrls = new HashSet<> ();
    /**
     * 放权Url,不需要授权即可访问的url,例如一些交互下拉列表,无需权限
     */
    private Set<String> notNeedAuthority = new HashSet<> ();

}
